package com.matt.repository.course;

import com.matt.domain.course.VideoTemp;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2018/11/7
 * *******************************
 */
public interface VideoTempRepository extends JpaRepository<VideoTemp, String> {
    VideoTemp findByVideoUrl(String url);

    @Modifying
    int deleteByVideoUrl(String url);
}
